﻿
//时间格式
var fnTimeFormat = function (nTd, sData, oData, iRow, iCol) {
    $(nTd).html(sData.replace('T', ' '));
};
//Encode
var fnEncode = function (nTd, sData, oData, iRow, iCol) {
    $(nTd).html(htmlEncode(sData));
};

// 加载页面
function loadColumns(page) {
    var param = { tableName: page };
    var _column = null;
    $.post('/SetDisplay/GetColumnsTitle', param, function (d) {
        _column = JSON.parse(d);
        for (var i = 0; i < _column.length; i++) {
            if (_column[i].fnCreatedCell != null && $.trim(_column[i].fnCreatedCell) != '') {
                _column[i].fnCreatedCell = eval(_column[i].fnCreatedCell);
            } else {
                _column[i].fnCreatedCell = null;
            }
        }
    });
    return _column;
}